package com.example.sys.org.vo;

import com.example.core.vo.BaseVo;
import com.example.sys.attachment.po.ISysAttachment;
import com.example.sys.attachment.po.SysAttachment;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.List;

@Data
public class SysUserVo extends BaseVo<SysUserVo> implements ISysAttachment {

    private String userName;

    private String passWord;

    private String phone;

    private String email;

    private String parentId;

    private String parentName;

    private String hierarchy;

    private String wxId;

    private String dingId;

    private String code;

    private String level;

    private String degree;

    private String addressId;

    private String addressName;

    private String bankNo;

    private String context;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String birthDate;

    private int age;

    private String avatar;

    @ApiModelProperty(value = "包含附件")
    private transient List<SysAttachment> fileList = new ArrayList<>();
}
